import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询物资管控列表
export function getBisMaterialInfoList(query) {
    return request({
        url: '/epidemic/bisMaterial/list',
        method: 'get',
        params: query
    })
}

// 获取物资管控信息
export function getBisMaterial(bisMaterialId) {
    return request({
        url: '/epidemic/bisMaterial/' + parseStrEmpty(bisMaterialId),
        method: 'get'
    })
}

// 新增物资管控
export function addBisMaterialInfo(data) {
    return request({
        url: '/epidemic/bisMaterial/add',
        method: 'post',
        data: data
    })
}

// 修改物资管控
export function updateBisMaterialInfo(data) {
    return request({
        url: '/epidemic/bisMaterial/update',
        method: 'post',
        data: data
    })
}

// 删除物资管控
export function delBisMaterialInfo(bisMaterialId) {
    return request({
        url: '/epidemic/bisMaterial/delete/' + bisMaterialId,
        method: 'get'
    })
}
